package org.itboys.core.entity.mongo;

import lombok.Data;
import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * 作者：zzq
 * 时间：2018/11/16
 * 描述：商品尺码
 */
@Data
@Entity(value = "SundayGoodsSize", noClassnameStored = true)
public class SundayGoodsSize extends BaseMongoEntity {
    private Long sundayGoodsId;//圣代商品Id
    private String goodsCode;//商品code
    private Long codeId;//尺码id
    private Long goodsId;//商品id
    private String sizeDetail;//尺码详情
    private String newSizeDetail;//新尺码
    private Double costPrice;//尺码原价
    private Double discountPrice;//尺码折扣价

    public SundayGoodsSize() {
    }

    public SundayGoodsSize(Long sundayGoodsId, String goodsCode, Long codeId, Long goodsId,
                           String sizeDetail,String newSizeDetail, Double costPrice, Double discountPrice) {
        this.sundayGoodsId = sundayGoodsId;
        this.goodsCode = goodsCode;
        this.codeId = codeId;
        this.goodsId = goodsId;
        this.sizeDetail = sizeDetail;
        this.newSizeDetail=newSizeDetail;
        this.costPrice = costPrice;
        this.discountPrice = discountPrice;
    }
}
